export default defineAppConfig({
  pages: [
    'pages/home/index',
    'pages/apply/index',
    'pages/food/index',
    'pages/formula/index',
    'pages/my/index',
    'pages/user/index',
    'pages/user-all/index',
    'pages/user-setting/index',
    'pages/register/index',
    'pages/base-ingredient/index',
    'pages/mix-ingredient-manage/index',
    'pages/formula-manage/index',
    'pages/mix-ingredient/index',
    'pages/add-mix/index',
  ],
  subpackages: [
    {
      "root": "subpackages",
      "pages": [
        'pages/category/index',
        'pages/food-manage/index',
      ]
    }
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black'
  },
  tabBar: {
    color: '#8a8a8a',
    selectedColor: '#222222',
    list: [
      {
        pagePath: 'pages/home/index',
        text: '配方',
        iconPath: 'assets/icon/home.png',
        selectedIconPath: 'assets/icon/home-active.png',
      },
      {
        pagePath: 'pages/my/index',
        text: '我的',
        iconPath: 'assets/icon/profile.png',
        selectedIconPath: 'assets/icon/profile-active.png',
      }
    ],
  },
  lazyCodeLoading: 'requiredComponents'
})
